﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL.ACChar;
using GCELibrary.Current;

namespace ZF.WS.service
{
    public partial class _char : BLL.Page.PageBase
    {
        public string guid { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            var member = SiteInfo.GetCurrentMember();
            if (member != null)
            {
                guid = member.MemberId.ToString();
                (new AdminChar()).RegOnLine(member.MemberId, false);
            }
            else
            {
                var oguid = HttpSession.GetSession("service_char_guid");
                if (oguid != null)
                {
                    guid = string.Concat(oguid);
                }
                else
                {
                    guid = Guid.NewGuid().ToString();
                    HttpSession.SetSession("service_char_guid", guid);
                }

                (new AdminChar()).RegOnLine(guid, false);
            }
        }

      
    }
}
